import type { HistoryRecord } from '@/types/historyRecord'
import { req } from './request'

// 获取历史战绩
export const getMatchHistoryApi = (puuid, params): Promise<HistoryRecord> => req(`/lol-match-history/v1/products/lol/${puuid}/matches`, params)

// 获取对局详情
export const getMatchDetailApi = (gameId) => req(`/lol-match-history/v1/games/${gameId}`)

// 获取当前对局(英雄选择时)
export const getCurrentMatchApi = () => req(`/lol-champ-select/v1/session`)

// 获取当前对局成员
export const getMatchMembersApi = () => req(`/lol-lobby/v2/lobby/members`)
